package domain;

/**
 * @author carlos.garcia.marquez
 */
public class Constants {

    // TODO posar valors per defecte
    private static Integer _N = 6;
    private static Integer _MAXN = 10;
    private static Float _GAMMA = (float) 0;
    private static Character _SYMBOL = '*';
    private static Integer _SUGGESTIONS = 5;
    private static Integer _RANKSUGGESTIONS = 5;

    /**
     * @param n El nou valor de la consant N.
     */
    public static void setN(Integer n) {
        _N = (n > _MAXN) ? _MAXN : n;
    }

    /**
     * @return Valor de la constant N.
     */
    public static Integer getN() {
        return _N;
    }

    /**
     * @return El nou valor de la constant MAXN(N que pren el model
     *         per a que el aprenentatge sigui incremental)
     */
    public static void setMAXN(Integer MAXN) {
        _MAXN = MAXN;
    }

    /**
     * @return Valor de la constant MAXN
     */
    public static Integer getMAXN() {
        return _MAXN;
    }

    /**
     * @param gamma El nou valor de la constant GAMMA.
     */
    public static void setGAMMA(Float gamma) {
        _GAMMA = gamma;
    }

    /**
     * @return Valor de la constant GAMMA.
     */
    public static Float getGAMMA() {
        return _GAMMA;
    }

    /**
     * @param symbol Simbol del model.
     */
    public static void setSYMBOL(Character symbol) {
        _SYMBOL = symbol;
    }

    /**
     * @return Valor de la constant SYMBOL.
     */
    public static Character getSYMBOL() {
        return _SYMBOL;
    }

    /**
     * @param suggestions Nombre de suggerencies que s'han de mostrar a l'usuari
     */
    public static void setSUGGESTIONS(Integer suggestions) {
        _SUGGESTIONS = suggestions;
    }

    /**
     * @return Valor de la constant SUGGESTIONS
     */
    public static Integer getSUGGESTIONS() {
        return _SUGGESTIONS;
    }

    /**
     * @param rankSuggestions Nombre de suggerencies que s'han de mostrar a l'usuari
     */
    public static void setRANKSUGGESTIONS(Integer rankSuggestions) {
        _RANKSUGGESTIONS = rankSuggestions;
    }

    /**
     * @return TODO
     */
    public static Integer getRANKSUGGESTIONS() {
        return _RANKSUGGESTIONS;
    }
}
